package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 采集设备
 * </p>
 *
 * @author wumu
 * @since 2019-12-14
 */
public class DevCollection extends Model<DevCollection> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 回路的名字
     */
    private String name;

    /**
     * 回路的最新数据
     */
    private Float lastData;

    /**
     * 回路的最新一次上传时间
     */
    private Long lastTime;

    /**
     * 集中器编号
     */
    private String eui;

    /**
     * 节点
     */
    private String node;

    /**
     * 回路的位置
     */
    private String circuit;

    /**
     * 传感器类型
     */
    private String type;

    /**
     * 设备位置
     */
    private String location;

    /**
     * 在线情况
     */
    private Integer online;

    private String protocol;

    private String tenantId;

    private Integer sequence;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getLastData() {
        return lastData;
    }

    public void setLastData(Float lastData) {
        this.lastData = lastData;
    }

    public Long getLastTime() {
        return lastTime;
    }

    public void setLastTime(Long lastTime) {
        this.lastTime = lastTime;
    }

    public String getEui() {
        return eui;
    }

    public void setEui(String eui) {
        this.eui = eui;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public String getCircuit() {
        return circuit;
    }

    public void setCircuit(String circuit) {
        this.circuit = circuit;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevCollection{" +
        "id=" + id +
        ", name=" + name +
        ", lastData=" + lastData +
        ", lastTime=" + lastTime +
        ", eui=" + eui +
        ", node=" + node +
        ", circuit=" + circuit +
        ", type=" + type +
        ", location=" + location +
        ", online=" + online +
        ", protocol=" + protocol +
        ", tenantId=" + tenantId +
        ", sequence=" + sequence +
        "}";
    }
}
